/**
 * userRole api
 */
import $http from '../../http/http'

/**
 * 获取用户的权限列表
 */
export const queryRolesByUsername = (username) => {
    return $http({
        method: "get",
        url: "userRoleMgmt/role/" + username,
        params: {
        }
    });
}

/**
 * 修改用户角色
 */
export const modifyUserRoles = (data) => {
    return $http({
        method: "post",
        url: "userRoleMgmt/modify",
        data
    });
}
